<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::EncryptedArrayDerived&lt; type &gt; Class Template Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classhelib_1_1_encrypted_array_derived-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::EncryptedArrayDerived&lt; type &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Derived concrete implementation of <a class="el" href="classhelib_1_1_encrypted_array_base.html" title="virtual class for data-movement operations on arrays of slots">EncryptedArrayBase</a>.  
 <a href="classhelib_1_1_encrypted_array_derived.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_encrypted_array_8h_source.html">EncryptedArray.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for helib::EncryptedArrayDerived&lt; type &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classhelib_1_1_encrypted_array_derived.png" usemap="#helib::EncryptedArrayDerived_3C_20type_20_3E_map" alt=""/>
  <map id="helib::EncryptedArrayDerived_3C_20type_20_3E_map" name="helib::EncryptedArrayDerived_3C_20type_20_3E_map">
<area href="classhelib_1_1_encrypted_array_base.html" title="virtual class for data-movement operations on arrays of slots" alt="helib::EncryptedArrayBase" shape="rect" coords="0,0,229,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a795ee815c4701c02b683c7bb3a9a3518"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a795ee815c4701c02b683c7bb3a9a3518">EncryptedArrayDerived</a> (const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;_context, const RX &amp;_G, const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;_tab)</td></tr>
<tr class="separator:a795ee815c4701c02b683c7bb3a9a3518"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3f8765108fc68df6296afb4845da57d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ab3f8765108fc68df6296afb4845da57d">EncryptedArrayDerived</a> (const <a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a> &amp;other)</td></tr>
<tr class="separator:ab3f8765108fc68df6296afb4845da57d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0cdc66cd6ea14bb1fa9b3748286b086"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ae0cdc66cd6ea14bb1fa9b3748286b086">operator=</a> (const <a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a> &amp;other)</td></tr>
<tr class="separator:ae0cdc66cd6ea14bb1fa9b3748286b086"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae80adc5a72904c36d8c174ee032b7208"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classhelib_1_1_encrypted_array_base.html">EncryptedArrayBase</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ae80adc5a72904c36d8c174ee032b7208">clone</a> () const override</td></tr>
<tr class="separator:ae80adc5a72904c36d8c174ee032b7208"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f1568cce42e1f8b91d9edceb5b8329a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a1f1568cce42e1f8b91d9edceb5b8329a">getTag</a> () const override</td></tr>
<tr class="separator:a1f1568cce42e1f8b91d9edceb5b8329a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a148c2b99586850a69ca19ab2b7fd562e"><td class="memTemplParams" colspan="2">template&lt;template&lt; typename &gt; class T, typename... Args&gt; </td></tr>
<tr class="memitem:a148c2b99586850a69ca19ab2b7fd562e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a148c2b99586850a69ca19ab2b7fd562e">dispatch</a> (Args &amp;&amp;... args) const</td></tr>
<tr class="separator:a148c2b99586850a69ca19ab2b7fd562e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a081671bfa69eb6938d12446bbc4853"><td class="memItemLeft" align="right" valign="top">const RX &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a4a081671bfa69eb6938d12446bbc4853">getG</a> () const</td></tr>
<tr class="separator:a4a081671bfa69eb6938d12446bbc4853"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ae779d5f0fd91f5d5846d5fc1d4fc15"><td class="memItemLeft" align="right" valign="top">const NTL::Mat&lt; R &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a5ae779d5f0fd91f5d5846d5fc1d4fc15">getNormalBasisMatrix</a> () const</td></tr>
<tr class="separator:a5ae779d5f0fd91f5d5846d5fc1d4fc15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a334f5f8c9e7d0f951c117b200efe127d"><td class="memItemLeft" align="right" valign="top">const NTL::Mat&lt; R &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a334f5f8c9e7d0f951c117b200efe127d">getNormalBasisMatrixInverse</a> () const</td></tr>
<tr class="separator:a334f5f8c9e7d0f951c117b200efe127d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a540b5ea6214812fa2414044923c3a035"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a540b5ea6214812fa2414044923c3a035">initNormalBasisMatrix</a> () const</td></tr>
<tr class="separator:a540b5ea6214812fa2414044923c3a035"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95c835acdb8766ca3a9e733195dedba7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a95c835acdb8766ca3a9e733195dedba7">restoreContext</a> () const override</td></tr>
<tr class="separator:a95c835acdb8766ca3a9e733195dedba7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a334aac82a4217163cd7f3e0a8da7eb9b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a334aac82a4217163cd7f3e0a8da7eb9b">restoreContextForG</a> () const override</td></tr>
<tr class="separator:a334aac82a4217163cd7f3e0a8da7eb9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedb467d9a37f866be26575bcdebe4401"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#aedb467d9a37f866be26575bcdebe4401">getContext</a> () const override</td></tr>
<tr class="separator:aedb467d9a37f866be26575bcdebe4401"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee12c18cec9f25f2e8b4208c7d32d1f7"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#aee12c18cec9f25f2e8b4208c7d32d1f7">getPAlgebra</a> () const override</td></tr>
<tr class="separator:aee12c18cec9f25f2e8b4208c7d32d1f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1aa2691c70360cbb4836ab9d220ce245"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a1aa2691c70360cbb4836ab9d220ce245">getDegree</a> () const override</td></tr>
<tr class="separator:a1aa2691c70360cbb4836ab9d220ce245"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9741ce6601a5d07c83283beeff6cc7e0"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a>&lt; type &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a9741ce6601a5d07c83283beeff6cc7e0">getTab</a> () const</td></tr>
<tr class="separator:a9741ce6601a5d07c83283beeff6cc7e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c0a250013b889509a852aa74e3c29f0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a1c0a250013b889509a852aa74e3c29f0">rotate</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long k) const override</td></tr>
<tr class="memdesc:a1c0a250013b889509a852aa74e3c29f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Right rotation as a linear array. E.g., rotating ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(n 1 2 ... n-1)  <a href="classhelib_1_1_encrypted_array_derived.html#a1c0a250013b889509a852aa74e3c29f0">More...</a><br /></td></tr>
<tr class="separator:a1c0a250013b889509a852aa74e3c29f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47944c462c09ff14b3d8dda332e66325"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a47944c462c09ff14b3d8dda332e66325">shift</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long k) const override</td></tr>
<tr class="memdesc:a47944c462c09ff14b3d8dda332e66325"><td class="mdescLeft">&#160;</td><td class="mdescRight">Non-cyclic right shift with zero fill E.g., shifting ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(0 1 2... n-1)  <a href="classhelib_1_1_encrypted_array_derived.html#a47944c462c09ff14b3d8dda332e66325">More...</a><br /></td></tr>
<tr class="separator:a47944c462c09ff14b3d8dda332e66325"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac09d307b1cceced22a6c5717c467b3e7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ac09d307b1cceced22a6c5717c467b3e7">rotate1D</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long k, bool dc=false) const override</td></tr>
<tr class="memdesc:ac09d307b1cceced22a6c5717c467b3e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">right-rotate k positions along the i'th dimension  <a href="classhelib_1_1_encrypted_array_derived.html#ac09d307b1cceced22a6c5717c467b3e7">More...</a><br /></td></tr>
<tr class="separator:ac09d307b1cceced22a6c5717c467b3e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a578731eb6f1c9ee5c992e8cb8108a7bf"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a578731eb6f1c9ee5c992e8cb8108a7bf">badDimensionAutomorphCorrection</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long k) const override</td></tr>
<tr class="memdesc:a578731eb6f1c9ee5c992e8cb8108a7bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Correct an automorphism in a bad dimension.  <a href="classhelib_1_1_encrypted_array_derived.html#a578731eb6f1c9ee5c992e8cb8108a7bf">More...</a><br /></td></tr>
<tr class="separator:a578731eb6f1c9ee5c992e8cb8108a7bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b245c39644ac52a7040ba18f57ad704"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a7b245c39644ac52a7040ba18f57ad704">getP2R</a> () const override</td></tr>
<tr class="separator:a7b245c39644ac52a7040ba18f57ad704"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4008456c8aaeaf459a8ee001b1dbf21f"><td class="memTemplParams" colspan="2">template&lt;typename U &gt; </td></tr>
<tr class="memitem:a4008456c8aaeaf459a8ee001b1dbf21f"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a4008456c8aaeaf459a8ee001b1dbf21f">rotate1D</a> (std::vector&lt; U &gt; &amp;out, const std::vector&lt; U &gt; &amp;in, long i, long offset) const</td></tr>
<tr class="separator:a4008456c8aaeaf459a8ee001b1dbf21f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac07a62371be0a1c0ad617a04e147e000"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ac07a62371be0a1c0ad617a04e147e000">shift1D</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long k) const override</td></tr>
<tr class="memdesc:ac07a62371be0a1c0ad617a04e147e000"><td class="mdescLeft">&#160;</td><td class="mdescRight">Right shift k positions along the i'th dimension with zero fill.  <a href="classhelib_1_1_encrypted_array_derived.html#ac07a62371be0a1c0ad617a04e147e000">More...</a><br /></td></tr>
<tr class="separator:ac07a62371be0a1c0ad617a04e147e000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a551593e093a3e2e49028d3522da86906"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a551593e093a3e2e49028d3522da86906">decrypt</a> (<a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, <a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, <a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> std::vector&lt; double &gt; &amp;ptxt) const override</td></tr>
<tr class="memdesc:a551593e093a3e2e49028d3522da86906"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unimplemented decrypt function for <a class="el" href="structhelib_1_1_c_k_k_s.html" title="Type for CKKS scheme, to be used as template parameter.">CKKS</a>. It will always throw <a class="el" href="classhelib_1_1_logic_error.html" title="Inherits from Exception and std::logic_error.">helib::LogicError</a>.  <a href="classhelib_1_1_encrypted_array_derived.html#a551593e093a3e2e49028d3522da86906">More...</a><br /></td></tr>
<tr class="separator:a551593e093a3e2e49028d3522da86906"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a449d1c41fe9b41dd8c45f63ce6e4de89"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a449d1c41fe9b41dd8c45f63ce6e4de89">decrypt</a> (<a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, <a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, <a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> std::vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;ptxt) const override</td></tr>
<tr class="memdesc:a449d1c41fe9b41dd8c45f63ce6e4de89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unimplemented decrypt function for <a class="el" href="structhelib_1_1_c_k_k_s.html" title="Type for CKKS scheme, to be used as template parameter.">CKKS</a>. It will always throw <a class="el" href="classhelib_1_1_logic_error.html" title="Inherits from Exception and std::logic_error.">helib::LogicError</a>.  <a href="classhelib_1_1_encrypted_array_derived.html#a449d1c41fe9b41dd8c45f63ce6e4de89">More...</a><br /></td></tr>
<tr class="separator:a449d1c41fe9b41dd8c45f63ce6e4de89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afee5218d346a7d0c27fcf4f72bd1fe8c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#afee5218d346a7d0c27fcf4f72bd1fe8c">encode</a> (NTL::ZZX &amp;ptxt, const std::vector&lt; long &gt; &amp;array) const override</td></tr>
<tr class="separator:afee5218d346a7d0c27fcf4f72bd1fe8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c69526bbb217d9731e628af68585b26"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a7c69526bbb217d9731e628af68585b26">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const std::vector&lt; long &gt; &amp;array) const override</td></tr>
<tr class="separator:a7c69526bbb217d9731e628af68585b26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80cc816a32404a8dc6e9a7ad28a2b810"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a80cc816a32404a8dc6e9a7ad28a2b810">encode</a> (NTL::ZZX &amp;ptxt, const std::vector&lt; NTL::ZZX &gt; &amp;array) const override</td></tr>
<tr class="separator:a80cc816a32404a8dc6e9a7ad28a2b810"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a377168a9d05375ab76ce34d8f6631582"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a377168a9d05375ab76ce34d8f6631582">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const std::vector&lt; <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &gt; &amp;array) const override</td></tr>
<tr class="separator:a377168a9d05375ab76ce34d8f6631582"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9d558e1bc5bcc2d7bab85621d7aeb58"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ae9d558e1bc5bcc2d7bab85621d7aeb58">encode</a> (NTL::ZZX &amp;ptxt, const <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;array) const override</td></tr>
<tr class="separator:ae9d558e1bc5bcc2d7bab85621d7aeb58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ee43b5496add8a1836259063975e1ee"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a1ee43b5496add8a1836259063975e1ee">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;array) const override</td></tr>
<tr class="separator:a1ee43b5496add8a1836259063975e1ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77cc1a6041c4d442bb3a3858afc5f12c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a77cc1a6041c4d442bb3a3858afc5f12c">encodeUnitSelector</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, long i) const override</td></tr>
<tr class="memdesc:a77cc1a6041c4d442bb3a3858afc5f12c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encodes a std::vector with 1 at position i and 0 everywhere else.  <a href="classhelib_1_1_encrypted_array_derived.html#a77cc1a6041c4d442bb3a3858afc5f12c">More...</a><br /></td></tr>
<tr class="separator:a77cc1a6041c4d442bb3a3858afc5f12c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8ff3f420efdf1d978e7647daf851b38"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#af8ff3f420efdf1d978e7647daf851b38">decode</a> (std::vector&lt; long &gt; &amp;array, const NTL::ZZX &amp;ptxt) const override</td></tr>
<tr class="separator:af8ff3f420efdf1d978e7647daf851b38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab46f85fab47332239f119caee09ececf"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ab46f85fab47332239f119caee09ececf">decode</a> (std::vector&lt; NTL::ZZX &gt; &amp;array, const NTL::ZZX &amp;ptxt) const override</td></tr>
<tr class="separator:ab46f85fab47332239f119caee09ececf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08da5d736925eaa31364d11607065621"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a08da5d736925eaa31364d11607065621">decode</a> (<a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;array, const NTL::ZZX &amp;ptxt) const override</td></tr>
<tr class="separator:a08da5d736925eaa31364d11607065621"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a988c0f9edd8c60f0f5f38f0881eaa814"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a988c0f9edd8c60f0f5f38f0881eaa814">decode</a> (<a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;array, const <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt) const</td></tr>
<tr class="separator:a988c0f9edd8c60f0f5f38f0881eaa814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14f8a3b077bab6c697efc921fe358178"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a14f8a3b077bab6c697efc921fe358178">random</a> (std::vector&lt; long &gt; &amp;array) const override</td></tr>
<tr class="separator:a14f8a3b077bab6c697efc921fe358178"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b0e39d0510ca716372034ee14786c56"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a9b0e39d0510ca716372034ee14786c56">random</a> (std::vector&lt; NTL::ZZX &gt; &amp;array) const override</td></tr>
<tr class="separator:a9b0e39d0510ca716372034ee14786c56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a579c0568094fd700b471567ee82f731c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a579c0568094fd700b471567ee82f731c">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; long &gt; &amp;ptxt) const override</td></tr>
<tr class="separator:a579c0568094fd700b471567ee82f731c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67585c6eeb53cb6bcd1f48f41f9e05a9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a67585c6eeb53cb6bcd1f48f41f9e05a9">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; NTL::ZZX &gt; &amp;ptxt) const override</td></tr>
<tr class="separator:a67585c6eeb53cb6bcd1f48f41f9e05a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4f2249cd0f9cebc2539ba2609780ae1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ae4f2249cd0f9cebc2539ba2609780ae1">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;ptxt) const override</td></tr>
<tr class="separator:ae4f2249cd0f9cebc2539ba2609780ae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac12a59e0c752ad844b5442f8df150449"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ac12a59e0c752ad844b5442f8df150449">buildLinPolyCoeffs</a> (std::vector&lt; NTL::ZZX &gt; &amp;C, const std::vector&lt; NTL::ZZX &gt; &amp;L) const override</td></tr>
<tr class="memdesc:ac12a59e0c752ad844b5442f8df150449"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linearized polynomials. L describes a linear map M by describing its action on the standard power basis: M(x^j mod G) = (L[j] mod G), for j = 0..d-1. The result is a coefficient std::vector C for the linearized polynomial representing M: a polynomial h in Z/(p^r)[X] of degree &lt; d is sent to.  <a href="classhelib_1_1_encrypted_array_derived.html#ac12a59e0c752ad844b5442f8df150449">More...</a><br /></td></tr>
<tr class="separator:ac12a59e0c752ad844b5442f8df150449"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a101cec4fc6d5882ed77f7de379d94eb5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a101cec4fc6d5882ed77f7de379d94eb5">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const std::vector&lt; RX &gt; &amp;array) const</td></tr>
<tr class="separator:a101cec4fc6d5882ed77f7de379d94eb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae658c1ab1894af846fc0cc16bef83ce6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ae658c1ab1894af846fc0cc16bef83ce6">decode</a> (std::vector&lt; RX &gt; &amp;array, const <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt) const</td></tr>
<tr class="separator:ae658c1ab1894af846fc0cc16bef83ce6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07998b13be5b9a9f4d75014adbc456a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a07998b13be5b9a9f4d75014adbc456a9">encode</a> (NTL::ZZX &amp;ptxt, const std::vector&lt; RX &gt; &amp;array) const</td></tr>
<tr class="separator:a07998b13be5b9a9f4d75014adbc456a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74621b671d094fb0b2811039c490f510"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a74621b671d094fb0b2811039c490f510">decode</a> (std::vector&lt; RX &gt; &amp;array, const NTL::ZZX &amp;ptxt) const</td></tr>
<tr class="separator:a74621b671d094fb0b2811039c490f510"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a984f89155eabfebf7f31b1c84062512c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a984f89155eabfebf7f31b1c84062512c">encode</a> (RX &amp;ptxt, const std::vector&lt; RX &gt; &amp;array) const</td></tr>
<tr class="separator:a984f89155eabfebf7f31b1c84062512c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4841a235587ec4402414a7ab109ec669"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a4841a235587ec4402414a7ab109ec669">decode</a> (std::vector&lt; RX &gt; &amp;array, const RX &amp;ptxt) const</td></tr>
<tr class="separator:a4841a235587ec4402414a7ab109ec669"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad307509bc693f875334cd67b84ba401d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ad307509bc693f875334cd67b84ba401d">random</a> (std::vector&lt; RX &gt; &amp;array) const</td></tr>
<tr class="separator:ad307509bc693f875334cd67b84ba401d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20151d8001b05fadd502f4992079dd1c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#a20151d8001b05fadd502f4992079dd1c">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; RX &gt; &amp;ptxt) const</td></tr>
<tr class="separator:a20151d8001b05fadd502f4992079dd1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad015d2493ac76b90a4dc2cc3176b6de4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_derived.html#ad015d2493ac76b90a4dc2cc3176b6de4">buildLinPolyCoeffs</a> (std::vector&lt; RX &gt; &amp;C, const std::vector&lt; RX &gt; &amp;L) const</td></tr>
<tr class="separator:ad015d2493ac76b90a4dc2cc3176b6de4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classhelib_1_1_encrypted_array_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classhelib_1_1_encrypted_array_base')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classhelib_1_1_encrypted_array_base.html">helib::EncryptedArrayBase</a></td></tr>
<tr class="memitem:a3fcb15513e4d89d0c0ed4bda3fca2190 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a3fcb15513e4d89d0c0ed4bda3fca2190">~EncryptedArrayBase</a> ()</td></tr>
<tr class="separator:a3fcb15513e4d89d0c0ed4bda3fca2190 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a16e9c45db9d6b963cfeaf0c0afaca2 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a6a16e9c45db9d6b963cfeaf0c0afaca2">size</a> () const</td></tr>
<tr class="memdesc:a6a16e9c45db9d6b963cfeaf0c0afaca2 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Total size (# of slots) of hypercube.  <a href="classhelib_1_1_encrypted_array_base.html#a6a16e9c45db9d6b963cfeaf0c0afaca2">More...</a><br /></td></tr>
<tr class="separator:a6a16e9c45db9d6b963cfeaf0c0afaca2 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5741ce03114f74e26d3d842e3539806a inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a5741ce03114f74e26d3d842e3539806a">dimension</a> () const</td></tr>
<tr class="memdesc:a5741ce03114f74e26d3d842e3539806a inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of dimensions of hypercube.  <a href="classhelib_1_1_encrypted_array_base.html#a5741ce03114f74e26d3d842e3539806a">More...</a><br /></td></tr>
<tr class="separator:a5741ce03114f74e26d3d842e3539806a inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b4ebc9251cd7e1966c5da70f51fb369 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a7b4ebc9251cd7e1966c5da70f51fb369">sizeOfDimension</a> (long i) const</td></tr>
<tr class="memdesc:a7b4ebc9251cd7e1966c5da70f51fb369 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of given dimension.  <a href="classhelib_1_1_encrypted_array_base.html#a7b4ebc9251cd7e1966c5da70f51fb369">More...</a><br /></td></tr>
<tr class="separator:a7b4ebc9251cd7e1966c5da70f51fb369 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a368c21a272921966da3a7793145bf5d2 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a368c21a272921966da3a7793145bf5d2">nativeDimension</a> (long i) const</td></tr>
<tr class="memdesc:a368c21a272921966da3a7793145bf5d2 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is rotations in given dimension a "native" operation?  <a href="classhelib_1_1_encrypted_array_base.html#a368c21a272921966da3a7793145bf5d2">More...</a><br /></td></tr>
<tr class="separator:a368c21a272921966da3a7793145bf5d2 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f4d4caa1e488648194495688a06a6a3 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a1f4d4caa1e488648194495688a06a6a3">coordinate</a> (long i, long k) const</td></tr>
<tr class="memdesc:a1f4d4caa1e488648194495688a06a6a3 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns coordinate of index k along the i'th dimension  <a href="classhelib_1_1_encrypted_array_base.html#a1f4d4caa1e488648194495688a06a6a3">More...</a><br /></td></tr>
<tr class="separator:a1f4d4caa1e488648194495688a06a6a3 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af55d2066263a1a0f6abd9ab221a61f0c inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#af55d2066263a1a0f6abd9ab221a61f0c">addCoord</a> (long i, long k, long offset) const</td></tr>
<tr class="memdesc:af55d2066263a1a0f6abd9ab221a61f0c inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">adds offset to index k in the i'th dimension  <a href="classhelib_1_1_encrypted_array_base.html#af55d2066263a1a0f6abd9ab221a61f0c">More...</a><br /></td></tr>
<tr class="separator:af55d2066263a1a0f6abd9ab221a61f0c inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefb676e30745c2ce81df0384cf949df7 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memTemplParams" colspan="2">template&lt;typename U &gt; </td></tr>
<tr class="memitem:aefb676e30745c2ce81df0384cf949df7 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#aefb676e30745c2ce81df0384cf949df7">rotate1D</a> (std::vector&lt; U &gt; &amp;out, const std::vector&lt; U &gt; &amp;in, long i, long offset) const</td></tr>
<tr class="memdesc:aefb676e30745c2ce81df0384cf949df7 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">rotate an array by offset in the i'th dimension (output should not alias input)  <a href="classhelib_1_1_encrypted_array_base.html#aefb676e30745c2ce81df0384cf949df7">More...</a><br /></td></tr>
<tr class="separator:aefb676e30745c2ce81df0384cf949df7 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f11ae63a7511a016c1ba28f293930a0 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a8f11ae63a7511a016c1ba28f293930a0">encode</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, const std::vector&lt; NTL::ZZX &gt; &amp;array) const</td></tr>
<tr class="separator:a8f11ae63a7511a016c1ba28f293930a0 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9b7baf29ff926acd6cfa8b8d00bf800 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#ab9b7baf29ff926acd6cfa8b8d00bf800">decode1Slot</a> (const NTL::ZZX &amp;ptxt, long i) const</td></tr>
<tr class="separator:ab9b7baf29ff926acd6cfa8b8d00bf800 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfdec26873763a9b20daf3206a273146 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#acfdec26873763a9b20daf3206a273146">decode1Slot</a> (NTL::ZZX &amp;slot, const NTL::ZZX &amp;ptxt, long i) const</td></tr>
<tr class="separator:acfdec26873763a9b20daf3206a273146 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade59fa0a4bceb030a895d725ee1f7d88 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memTemplParams" colspan="2">template&lt;typename PTXT &gt; </td></tr>
<tr class="memitem:ade59fa0a4bceb030a895d725ee1f7d88 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#ade59fa0a4bceb030a895d725ee1f7d88">encrypt</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;key, const PTXT &amp;ptxt) const</td></tr>
<tr class="separator:ade59fa0a4bceb030a895d725ee1f7d88 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4883d910df8cf214986647f84eb7531c inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a4883d910df8cf214986647f84eb7531c">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; double &gt; &amp;ptxt) const =0</td></tr>
<tr class="separator:a4883d910df8cf214986647f84eb7531c inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a000a070007229db34150a3dcbb45f886 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a000a070007229db34150a3dcbb45f886">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, std::vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;ptxt) const =0</td></tr>
<tr class="separator:a000a070007229db34150a3dcbb45f886 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb343e9ad9fe202a7386fc8359346a02 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#acb343e9ad9fe202a7386fc8359346a02">decrypt1Slot</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, long i) const</td></tr>
<tr class="separator:acb343e9ad9fe202a7386fc8359346a02 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a454ee083696fe4e2b56ed18dae023722 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array_base.html#a454ee083696fe4e2b56ed18dae023722">decrypt1Slot</a> (NTL::ZZX &amp;slot, const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, long i) const</td></tr>
<tr class="separator:a454ee083696fe4e2b56ed18dae023722 inherit pub_methods_classhelib_1_1_encrypted_array_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename type&gt;<br />
class helib::EncryptedArrayDerived&lt; type &gt;</h3>

<p>Derived concrete implementation of <a class="el" href="classhelib_1_1_encrypted_array_base.html" title="virtual class for data-movement operations on arrays of slots">EncryptedArrayBase</a>. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a795ee815c4701c02b683c7bb3a9a3518"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a795ee815c4701c02b683c7bb3a9a3518">&#9670;&nbsp;</a></span>EncryptedArrayDerived() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::<a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;&#160;</td>
          <td class="paramname"><em>_context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const RX &amp;&#160;</td>
          <td class="paramname"><em>_G</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;&#160;</td>
          <td class="paramname"><em>_tab</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab3f8765108fc68df6296afb4845da57d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3f8765108fc68df6296afb4845da57d">&#9670;&nbsp;</a></span>EncryptedArrayDerived() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::<a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a578731eb6f1c9ee5c992e8cb8108a7bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a578731eb6f1c9ee5c992e8cb8108a7bf">&#9670;&nbsp;</a></span>badDimensionAutomorphCorrection()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::badDimensionAutomorphCorrection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>amt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Correct an automorphism in a bad dimension. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctxt</td><td><code><a class="el" href="classhelib_1_1_ctxt.html" title="A Ctxt object holds a single ciphertext.">Ctxt</a></code> to perform the correction on. </td></tr>
    <tr><td class="paramname">i</td><td>Dimension of which to correct. </td></tr>
    <tr><td class="paramname">amt</td><td>Exponent of the automorphism. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a05e74964d2a8246b2c197251d6426faa">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="ac12a59e0c752ad844b5442f8df150449"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac12a59e0c752ad844b5442f8df150449">&#9670;&nbsp;</a></span>buildLinPolyCoeffs() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::buildLinPolyCoeffs </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>C</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>L</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Linearized polynomials. L describes a linear map M by describing its action on the standard power basis: M(x^j mod G) = (L[j] mod G), for j = 0..d-1. The result is a coefficient std::vector C for the linearized polynomial representing M: a polynomial h in Z/(p^r)[X] of degree &lt; d is sent to. </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ //! M(h(X) \bmod G)= \sum_{i=0}^{d-1}(C[j] \cdot h(X^{p^j}))\bmod G). //! \]" src="form_3.png" width="286" height="38"/>
</p>
 
<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a20cdc66014104dd640f37c1c92e1fa05">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="ad015d2493ac76b90a4dc2cc3176b6de4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad015d2493ac76b90a4dc2cc3176b6de4">&#9670;&nbsp;</a></span>buildLinPolyCoeffs() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::buildLinPolyCoeffs </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>C</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>L</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae80adc5a72904c36d8c174ee032b7208"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae80adc5a72904c36d8c174ee032b7208">&#9670;&nbsp;</a></span>clone()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classhelib_1_1_encrypted_array_base.html">EncryptedArrayBase</a>* <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#aff3d839e2e2976ef8c87853cf5a9cbb7">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a08da5d736925eaa31364d11607065621"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08da5d736925eaa31364d11607065621">&#9670;&nbsp;</a></span>decode() <span class="overload">[1/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a789cc5597002e684315cabbef6c42de8">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a988c0f9edd8c60f0f5f38f0881eaa814"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a988c0f9edd8c60f0f5f38f0881eaa814">&#9670;&nbsp;</a></span>decode() <span class="overload">[2/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af8ff3f420efdf1d978e7647daf851b38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8ff3f420efdf1d978e7647daf851b38">&#9670;&nbsp;</a></span>decode() <span class="overload">[3/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decode </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#aacbeee1b5623eeec1d2c8ca311654cc7">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="ab46f85fab47332239f119caee09ececf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab46f85fab47332239f119caee09ececf">&#9670;&nbsp;</a></span>decode() <span class="overload">[4/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decode </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a034157a2fb376284fa951f20570e02d0">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a74621b671d094fb0b2811039c490f510"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74621b671d094fb0b2811039c490f510">&#9670;&nbsp;</a></span>decode() <span class="overload">[5/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decode </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4841a235587ec4402414a7ab109ec669"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4841a235587ec4402414a7ab109ec669">&#9670;&nbsp;</a></span>decode() <span class="overload">[6/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decode </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const RX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae658c1ab1894af846fc0cc16bef83ce6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae658c1ab1894af846fc0cc16bef83ce6">&#9670;&nbsp;</a></span>decode() <span class="overload">[7/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decode </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae4f2249cd0f9cebc2539ba2609780ae1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4f2249cd0f9cebc2539ba2609780ae1">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a96caa13ce77bdabc4b7d679c28213c73">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a579c0568094fd700b471567ee82f731c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a579c0568094fd700b471567ee82f731c">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a4e8c39c8730c5072e36f37aaa28eccbb">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a67585c6eeb53cb6bcd1f48f41f9e05a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67585c6eeb53cb6bcd1f48f41f9e05a9">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#ae31ef3579ef0b0d6cba0f805a9c80f50">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a20151d8001b05fadd502f4992079dd1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20151d8001b05fadd502f4992079dd1c">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a449d1c41fe9b41dd8c45f63ce6e4de89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a449d1c41fe9b41dd8c45f63ce6e4de89">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> std::vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Unimplemented decrypt function for <a class="el" href="structhelib_1_1_c_k_k_s.html" title="Type for CKKS scheme, to be used as template parameter.">CKKS</a>. It will always throw <a class="el" href="classhelib_1_1_logic_error.html" title="Inherits from Exception and std::logic_error.">helib::LogicError</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctxt</td><td>Unused. </td></tr>
    <tr><td class="paramname">sKey</td><td>Unused. </td></tr>
    <tr><td class="paramname">ptxt</td><td>Unused. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a551593e093a3e2e49028d3522da86906"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a551593e093a3e2e49028d3522da86906">&#9670;&nbsp;</a></span>decrypt() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::decrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> std::vector&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Unimplemented decrypt function for <a class="el" href="structhelib_1_1_c_k_k_s.html" title="Type for CKKS scheme, to be used as template parameter.">CKKS</a>. It will always throw <a class="el" href="classhelib_1_1_logic_error.html" title="Inherits from Exception and std::logic_error.">helib::LogicError</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctxt</td><td>Unused. </td></tr>
    <tr><td class="paramname">sKey</td><td>Unused. </td></tr>
    <tr><td class="paramname">ptxt</td><td>Unused. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a148c2b99586850a69ca19ab2b7fd562e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a148c2b99586850a69ca19ab2b7fd562e">&#9670;&nbsp;</a></span>dispatch()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<div class="memtemplate">
template&lt;template&lt; typename &gt; class T, typename... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::dispatch </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae9d558e1bc5bcc2d7bab85621d7aeb58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9d558e1bc5bcc2d7bab85621d7aeb58">&#9670;&nbsp;</a></span>encode() <span class="overload">[1/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#af769f314f80561d0aad9420aabc98a86">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="afee5218d346a7d0c27fcf4f72bd1fe8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afee5218d346a7d0c27fcf4f72bd1fe8c">&#9670;&nbsp;</a></span>encode() <span class="overload">[2/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a6c08875c23130ae7eeea11189b5c50cf">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a80cc816a32404a8dc6e9a7ad28a2b810"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80cc816a32404a8dc6e9a7ad28a2b810">&#9670;&nbsp;</a></span>encode() <span class="overload">[3/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a4c1ee4078df5f248d96b30dd5676783e">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a07998b13be5b9a9f4d75014adbc456a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07998b13be5b9a9f4d75014adbc456a9">&#9670;&nbsp;</a></span>encode() <span class="overload">[4/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype">NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a984f89155eabfebf7f31b1c84062512c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a984f89155eabfebf7f31b1c84062512c">&#9670;&nbsp;</a></span>encode() <span class="overload">[5/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype">RX &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a1ee43b5496add8a1836259063975e1ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ee43b5496add8a1836259063975e1ee">&#9670;&nbsp;</a></span>encode() <span class="overload">[6/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_plaintext_array.html">PlaintextArray</a> &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a8b461cfa84f1751ad0db61a80ff5c7e8">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a7c69526bbb217d9731e628af68585b26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c69526bbb217d9731e628af68585b26">&#9670;&nbsp;</a></span>encode() <span class="overload">[7/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a93bf7ceecb7cef0259b5eddeb25a3c28">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a101cec4fc6d5882ed77f7de379d94eb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a101cec4fc6d5882ed77f7de379d94eb5">&#9670;&nbsp;</a></span>encode() <span class="overload">[8/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a377168a9d05375ab76ce34d8f6631582"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a377168a9d05375ab76ce34d8f6631582">&#9670;&nbsp;</a></span>encode() <span class="overload">[9/9]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a64f75f243718856305758a8a39834a00">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a77cc1a6041c4d442bb3a3858afc5f12c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77cc1a6041c4d442bb3a3858afc5f12c">&#9670;&nbsp;</a></span>encodeUnitSelector()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::encodeUnitSelector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Encodes a std::vector with 1 at position i and 0 everywhere else. </p>

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#ae87dba346c9f27331e552edd1511552f">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="aedb467d9a37f866be26575bcdebe4401"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedb467d9a37f866be26575bcdebe4401">&#9670;&nbsp;</a></span>getContext()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classhelib_1_1_context.html">Context</a>&amp; <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a953777c1f618b3f77cb06981f39dce99">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a1aa2691c70360cbb4836ab9d220ce245"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1aa2691c70360cbb4836ab9d220ce245">&#9670;&nbsp;</a></span>getDegree()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual long <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getDegree </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a385a1b684e2ff6346f7b8e7425a6aacb">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a4a081671bfa69eb6938d12446bbc4853"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a081671bfa69eb6938d12446bbc4853">&#9670;&nbsp;</a></span>getG()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const RX&amp; <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getG </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5ae779d5f0fd91f5d5846d5fc1d4fc15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ae779d5f0fd91f5d5846d5fc1d4fc15">&#9670;&nbsp;</a></span>getNormalBasisMatrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const NTL::Mat&lt;R&gt;&amp; <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getNormalBasisMatrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a334f5f8c9e7d0f951c117b200efe127d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a334f5f8c9e7d0f951c117b200efe127d">&#9670;&nbsp;</a></span>getNormalBasisMatrixInverse()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const NTL::Mat&lt;R&gt;&amp; <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getNormalBasisMatrixInverse </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a7b245c39644ac52a7040ba18f57ad704"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b245c39644ac52a7040ba18f57ad704">&#9670;&nbsp;</a></span>getP2R()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getP2R </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a4b575e110984970e2f56f6b04731f55a">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="aee12c18cec9f25f2e8b4208c7d32d1f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee12c18cec9f25f2e8b4208c7d32d1f7">&#9670;&nbsp;</a></span>getPAlgebra()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a>&amp; <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getPAlgebra </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#aebe917f60f1fa14b3f43d283e39c05f0">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a9741ce6601a5d07c83283beeff6cc7e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9741ce6601a5d07c83283beeff6cc7e0">&#9670;&nbsp;</a></span>getTab()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">PAlgebraModDerived</a>&lt;type&gt;&amp; <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getTab </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1f1568cce42e1f8b91d9edceb5b8329a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f1568cce42e1f8b91d9edceb5b8329a">&#9670;&nbsp;</a></span>getTag()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a> <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::getTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a5fe975d2c45ef2f25aaf5920c91627fe">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a540b5ea6214812fa2414044923c3a035"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a540b5ea6214812fa2414044923c3a035">&#9670;&nbsp;</a></span>initNormalBasisMatrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::initNormalBasisMatrix</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae0cdc66cd6ea14bb1fa9b3748286b086"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0cdc66cd6ea14bb1fa9b3748286b086">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a>&amp; <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a>&lt; type &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a14f8a3b077bab6c697efc921fe358178"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14f8a3b077bab6c697efc921fe358178">&#9670;&nbsp;</a></span>random() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::random </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#aee2981f3b0804e96f83106307d9c5be9">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a9b0e39d0510ca716372034ee14786c56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b0e39d0510ca716372034ee14786c56">&#9670;&nbsp;</a></span>random() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::random </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a54e197fb8f924535b79bf1cb0fd62ce3">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="ad307509bc693f875334cd67b84ba401d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad307509bc693f875334cd67b84ba401d">&#9670;&nbsp;</a></span>random() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::random </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; RX &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a95c835acdb8766ca3a9e733195dedba7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95c835acdb8766ca3a9e733195dedba7">&#9670;&nbsp;</a></span>restoreContext()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::restoreContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented from <a class="el" href="classhelib_1_1_encrypted_array_base.html#a3829a9890ce25a65bdb5111bf2bdd687">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a334aac82a4217163cd7f3e0a8da7eb9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a334aac82a4217163cd7f3e0a8da7eb9b">&#9670;&nbsp;</a></span>restoreContextForG()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::restoreContextForG </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented from <a class="el" href="classhelib_1_1_encrypted_array_base.html#ae5927ca8c689a115ee2c12522289255f">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a1c0a250013b889509a852aa74e3c29f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c0a250013b889509a852aa74e3c29f0">&#9670;&nbsp;</a></span>rotate()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::rotate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Right rotation as a linear array. E.g., rotating ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(n 1 2 ... n-1) </p>

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#ab02ad165d8df163bc6d8c544f8f81bbd">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="ac09d307b1cceced22a6c5717c467b3e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac09d307b1cceced22a6c5717c467b3e7">&#9670;&nbsp;</a></span>rotate1D() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::rotate1D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>dc</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>right-rotate k positions along the i'th dimension </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dc</td><td>means "don't care", which means that the caller guarantees that only zero elements rotate off the end &ndash; this allows for some optimizations that would not otherwise be possible </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a3beed1bc134ad9a4dbe6f6c4f456fee7">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="a4008456c8aaeaf459a8ee001b1dbf21f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4008456c8aaeaf459a8ee001b1dbf21f">&#9670;&nbsp;</a></span>rotate1D() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<div class="memtemplate">
template&lt;typename U &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::rotate1D </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; U &gt; &amp;&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; U &gt; &amp;&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a47944c462c09ff14b3d8dda332e66325"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47944c462c09ff14b3d8dda332e66325">&#9670;&nbsp;</a></span>shift()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::shift </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Non-cyclic right shift with zero fill E.g., shifting ctxt=Enc(1 2 3 ... n) by k=1 gives Enc(0 1 2... n-1) </p>

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a72245213a18b9bafdd8ebc2396972c14">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<a id="ac07a62371be0a1c0ad617a04e147e000"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac07a62371be0a1c0ad617a04e147e000">&#9670;&nbsp;</a></span>shift1D()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classhelib_1_1_encrypted_array_derived.html">helib::EncryptedArrayDerived</a>&lt; type &gt;::shift1D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Right shift k positions along the i'th dimension with zero fill. </p>

<p>Implements <a class="el" href="classhelib_1_1_encrypted_array_base.html#a2461039fb77ebf3fea8482adff2b40c0">helib::EncryptedArrayBase</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/HElib/include/helib/<a class="el" href="_encrypted_array_8h_source.html">EncryptedArray.h</a></li>
<li>/HElib/src/<a class="el" href="_encrypted_array_8cpp.html">EncryptedArray.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
